<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<link rel="stylesheet" type="text/css" href="../../css/aui.css" />
		<link rel="stylesheet" type="text/css" href="../../css/api.css" />
		<link rel="stylesheet" type="text/css" href="../../css/yzl.css" />


		<link rel="stylesheet" href="../../css/weui.css">
		<link rel="stylesheet" href="../../css/jQuery_WeUI.css">
		<style type="text/css">
			.aui-list .wechat-avatar {
				width: 3rem;
				height: 3rem;
			}
			.wechat-avatar, .wechat-avatar > img {
				border-radius: 8px;
				width: 3rem;
				max-height: 3rem;
			}
			.aui-list .aui-list-item-text img {
				width: 14px;
				height: 14px;
			}
			.aui-list .aui-list-item-text {
				-webkit-justify-content: flex-start;
				justify-content: flex-start;
			}
			.aui-list .aui-list-item-right {
				right: 20px;
				position: fixed;
			}
			.aui-list .aui-list-item-title {
				font-size: 0.9rem;
				position: relative;
				max-width: 100%;
				color: #212121;
			}
			.aui-list {
				border-top: none;
			}
			@media screen and (-webkit-min-device-pixel-ratio: 1.5) {
				.aui-list {
					border: none;
					background-size: 100% 0px;
				}
			}
			.weui-swiped-btn{
				height: 70px;
				line-height:   50px;
			}
			.last-content{
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
				width: 80%
			}
		</style>
	</head>
	<body >

		<div class="weui-search-bar" id="searchBar">
	    <form class="weui-search-bar__form" onsubmit="return searchKeyword()">
	      <div class="weui-search-bar__box">
	        <i class="weui-icon-search"></i>
	        <input type="search" class="weui-search-bar__input" id="searchInput"  style="background:red" placeholder="搜索" required="">
	        <a href="javascript:" class="weui-icon-clear" id="searchClear"></a>
	      </div>
	      <label class="weui-search-bar__label" id="searchText">
	        <i class="weui-icon-search"></i>
	        <span>搜索</span>
	      </label>
	    </form>
	    <a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>
	  </div>
		<div class="aui-content aui-margin-b-15" id="app" v-cloak>
			<div class="fid_content" v-show="show_add">
				<div class="fid_item" tapmode v-myclick="scanner"><img v-src="'../../image/scan.png'"><span style="padding-left:5px">扫一扫</span></div>
				<div class="fid_item" tapmode v-myclick="add_friend" ><img v-src="'../../image/add_friend.png'"><span style="padding-left:5px">添加好友</span></div>
				<div class="fid_item" tapmode v-myclick="create_group" ><img v-src="'../../image/friends.png'"><span style="padding-left:5px">创建家族</span></div>
			</div>
			<ul class="aui-list aui-media-list" id="hh_list">
				<li  class="aui-list-item aui-list-item-middle weui-cell weui-cell_swiped" :class='"item"+item.targetId' v-for="(item, index) in message_list">
				    <div class="aui-media-list-item-inner weui-cell__bd" v-show="item.conversationType=='PRIVATE'" v-myclick="[item, startchatone]">
				        <div class="aui-list-item-media wechat-avatar">
									<div class="aui-badge" v-show="item.unreadMessageCount>0">{{item.unreadMessageCount}}</div>
									<img class="chat_avatar" :key="item.senderUserId" v-image-resize="{src:item.tx?item.tx:'../res/tx00.jpg'}"/>
				        </div>
				        <div class="aui-list-item-inner">
				            <div class="aui-list-item-text">
				                <div class="aui-list-item-title">{{item.xm}}</div>
				                <div class="aui-list-item-right">{{sj(item.sentTime)}}</div>
				            </div>
				            <div class="aui-list-item-text aui-font-size-12 last-content" v-show="item.objectName=='RC:TxtMsg'&&item.extra.mtype==undefined">{{replace_em(item.latestMessage.text)}}</div>
										<div class="aui-list-item-text aui-font-size-12 " v-show="item.objectName=='RC:TxtMsg'&&item.extra.mtype=='file'">{{replace_em(item.latestMessage.text)}}</div>
										<div class="aui-list-item-text aui-font-size-12 aui-text-success" v-show="item.objectName=='RC:ImgMsg'">[图像消息]</div>
										<div class="aui-list-item-text aui-font-size-12 aui-text-primary" v-show="item.objectName=='RC:VcMsg'">[语音消息]</div>
										<div class="aui-list-item-text aui-font-size-12 aui-text-primary" v-show="item.objectName=='RC:FileMsg'">[文件消息]</div>
				        </div>
				    </div>
						<div class="weui-cell__ft">
							<a class="weui-swiped-btn weui-swiped-btn_warn delete-swipeout" v-myclick="[item, delmessage]">删除</a>
						</div>
						<div class="aui-media-list-item-inner weui-cell__bd" v-show="item.conversationType=='GROUP'" v-myclick="[item, startchatgroup]">
								<div class="aui-list-item-media wechat-avatar">
									<div class="aui-badge" v-show="item.unreadMessageCount>0">{{item.unreadMessageCount}}</div>
									<img class="chat_avatar" :key="item.senderUserId"  v-image-resize="{src:item.extra.group_tx?item.extra.group_tx:'../res/tx00.jpg'}"/>
								</div>
								<div class="aui-list-item-inner">
										<div class="aui-list-item-text">
												<div class="aui-list-item-title">{{item.extra.group_zh}}</div>
												<div class="aui-list-item-right">{{sj(item.sentTime)}}</div>
										</div>
										<div class="aui-list-item-text aui-font-size-12 last-content" v-show="item.objectName=='RC:TxtMsg'&&item.extra.mtype==undefined">{{item.extra.username}}:{{replace_em(item.latestMessage.text)}}</div>
										<div class="aui-list-item-text aui-font-size-12 " v-show="item.objectName=='RC:TxtMsg'&&item.extra.mtype=='file'">{{item.extra.username}}:{{replace_em(item.latestMessage.text)}}</div>
										<div class="aui-list-item-text aui-font-size-12 aui-text-success" v-show="item.objectName=='RC:ImgMsg'">{{item.extra.username}}:[图像消息]</div>
										<div class="aui-list-item-text aui-font-size-12 aui-text-primary" v-show="item.objectName=='RC:VcMsg'">{{item.extra.username}}:[语音消息]</div>
										<div class="aui-list-item-text aui-font-size-12 aui-text-primary" v-show="item.objectName=='RC:FileMsg'">{{item.extra.username}}:[文件消息]</div>
								</div>
						</div>
						<div class="aui-media-list-item-inner weui-cell__bd" v-show="item.conversationType=='SYSTEM'" v-myclick="[item, getsys]">
								<div class="aui-list-item-media wechat-avatar">
										<div class="aui-badge" v-show="item.unreadMessageCount>0">{{item.unreadMessageCount}}</div>
										<img class="chat_avatar" src="../../image/sys.png"/></div>
								<div class="aui-list-item-inner">
										<div class="aui-list-item-text">
												<div class="aui-list-item-title">系统消息</div>
												<div class="aui-list-item-right">{{sj(item.sentTime)}}</div>
										</div>
										<div class="aui-list-item-text aui-font-size-12">{{item.latestMessage.text}}</div>
								</div>
						</div>
				</li>
			</ul>
		</div>
	</body>
	<script src="../../script/api.js"></script>
	<script src="../../script/vue.js"></script>
	<script src="../../script/app.js"></script>
	<script src="../../script/common.js"></script>
	<script src="../../script/url.js"></script>
	<script type="text/javascript" src="../../script/jquery.js"></script>
	<script src="../../script/jQuery_WeUI.js"></script>
	<script type="text/javascript">
	  var message_list;
		apiready = function() {
			setBSImg();
			var rong = api.require('rongCloud2');
			FNScanner  = api.require('FNScanner');
			rong.getConversationList(function(ret, err) {
				if (ret.status == 'success') {

					for (var i=0;i<ret.result.length;i++) {
						var rs = ret.result[i];
						var extra = transExtra(rs.latestMessage.extra);
						if (extra.from_member == getPrefs('member_id')) {
							var xm = extra.xm2;
							var tx = extra.tx2;
						} else {
							var xm = extra.xm1;
							var tx = extra.tx1;
						}
						ret.result[i]['xm'] = xm;
						ret.result[i]['tx'] = tx;
						ret.result[i]['extra'] = extra;

					}
					message_list = ret.result;
					initApp();
				}
			})
			// hhxx();
			api.addEventListener({
				name : 'hhxx'
			}, function(ret, err) {
				reload();
			});
			addListeners();
			// setRefreshHeaderInfo(reload);

		}
		function searchKeyword() {
		var keyword = document.getElementById("searchInput").value;
		// 之前调用 init 和 connect 的代码省略
		var rong = api.require('rongCloud2');

		rong.searchConversations({
		    conversationTypes: ['PRIVATE','GROUP'],
		    objectNames: ['RC:TxtMsg'],
		    keyword:keyword
		}, function(ret) {
			for (var i=0;i<ret.result.length;i++) {
				var rs = ret.result[i];
				var extra = transExtra(rs.latestMessage.extra);
				if (extra.from_member == getPrefs('member_id')) {
					var xm = extra.xm2;
					var tx = extra.tx2;
				} else {
					var xm = extra.xm1;
					var tx = extra.tx1;
				}
				ret.result[i]['xm'] = xm;
				ret.result[i]['tx'] = tx;
				ret.result[i]['extra'] = extra;

			}
		    vm.message_list = ret.result;
		})
	return false;
}
		function reload() {

			var rong = api.require('rongCloud2');
			rong.getConversationList(function(ret, err) {
				if (ret.status == 'success') {
					for (var i=0;i<ret.result.length;i++) {
						var rs = ret.result[i];
						var extra = transExtra(rs.latestMessage.extra);
						if (extra.from_member == getPrefs('member_id')) {
							var xm = extra.xm2;
							var tx = extra.tx2;
						} else {
							var xm = extra.xm1;
							var tx = extra.tx1;
						}
						ret.result[i]['xm'] = xm;
						ret.result[i]['tx'] = tx;
						ret.result[i]['extra'] = extra;
					}
					vm.message_list = ret.result;
				}
			})

		}
		function system_message() {
			var html = '';
		}
		function replace_em(text) {

			// value = text.replace(reg, function(a, b) {
			// 	return face[a] ? face[a] : a;
			// });
			return text
		}
		function initApp() {
				vm = new Vue({
						el: '#app',
						data: {
								member_id: getPrefs('member_id'),
								message_list: message_list,
								show_add:false,
								imgPath: '../../image/',
								BSImg: {
										big: Vue.BSImg == 'big',
										small: Vue.BSImg == 'small',
								},
						},
						methods: {
							startchatone:function(item){
								api.openWin({
									reload : true,
									name : 'chat',
									url : '../win/win_chat.html',
									pageParam : {
										id : item.targetId,
										zh : item.xm,
										tx : item.tx
									},
									vScrollBarEnabled : false,
								});
								var rong = api.require('rongCloud2');
								rong.clearMessagesUnreadStatus({
									conversationType : 'PRIVATE',
									targetId : item.targetId
								}, function(ret, err) {
								})
								api.sendEvent({
									name : 'hhxx'
								});
							},
							startchatgroup:function(item){
								api.openWin({
									reload : true,
									name : 'win_group',
									url : '../win/win_group.html',
									vScrollBarEnabled : false,
									pageParam : {
										clan_im_id : item.targetId,
										group_id : item.extra.group_id,
										group_zh : item.extra.group_zh,
										group_tx : item.extra.group_tx
									}
								});
								var rong = api.require('rongCloud2');
								rong.clearMessagesUnreadStatus({
									conversationType : 'GROUP',
									targetId : item.targetId
								}, function(ret, err) {
								})
								api.sendEvent({
									name : 'hhxx'
								});
							},
							getsys:function(){
								api.openWin({
									reload : true,
									name : 'win_sys_message',
									url : '../win/win_sys_message.html',
									vScrollBarEnabled : false,
									params:{id:'kxscnlbwMID4'}
								});
							},
							delmessage:function(item){
								var rong = api.require('rongCloud2');

								rong.removeConversation({
								    conversationType: 'PRIVATE',
								    targetId: item.targetId
								}, function(ret, err) {
										if(ret.status=="success"){
											 $api.remove($api.dom('.item'+item.targetId));
										}
								})
							},
							scanner:function(){
							this.show_add =false;
							FNScanner.open({
									autorotation: true
							}, function(ret, err) {
									if (ret) {
										url = ret.content;
										if(url){
											var memberId = getPrefs('member_id')
											var urlMemberId = url.split('member_id=')[1]
											if( memberId == urlMemberId){
												pinet.alert('请勿扫描自己的二维码')
												return
											}
											if( url.indexOf('type=addfriends&member_id=') < 0 && url.indexOf('type=addgroup&groupid=') < 0 ){
												pinet.alert('请扫描正确的二维码')
												return
											}
											if(url.indexOf('type=addfriends&member_id=') >= 0 ){
												var url = url.split("member_id=");
												user_id = url[url.length-1];
												api.openWin({
													reload : true,
													name : 'member_info',
													url : '../user/member_info.html',
													vScrollBarEnabled : false,
													pageParam : {
														uid : user_id,
													}
												});
											}
											if(url.indexOf('type=addgroup&groupid=') >= 0 ){
												var url = url.split("groupid=");
												groupid = url[url.length-1];
												var params = {
														clan_unique_id: groupid,
														member_id: getPrefs('member_id'),
												};
												var callback = function (ret) {
														var get_info = ret.content;
														api.openWin({
															reload : true,
															name : 'member_info',
															url : '../chat/search_group_info.html',
															vScrollBarEnabled : false,
															pageParam : {
																item : get_info[0],
															}
														});
														api.hideProgress();
												};
												pinet.post(URL.searchClan, params, callback);
												console.log(groupid);
											}
										}
									} else {
											alert(JSON.stringify(err));
									}
							});
						},
						add_friend(){
							this.show_add =false;

							api.openWin({
								reload : true,
								name : 'addsearch',
								url : '../user/addsearch.html',
								vScrollBarEnabled : false,
							});
						},
						create_group(){
							this.show_add =false;

							api.openWin({
								reload : true,
								name : 'create_group',
								url : '../chat/create_group.html',
								vScrollBarEnabled : false,
							});
						}

						},
						created: function () {

						},
						watch:{
					},
						mounted:function(){
							$(".weui-cell_swiped").swipeout();
				},
				})
		}
		function hhxx() {
			var rong = api.require('rongCloud2');
			// console.log(getPrefs('imtoken'));
			// return;
			rong.getConversationList(function(ret, err) {
				//  console.log(JSON.stringify(ret.result)+getPrefs("member_id"));

				if (ret.status == 'success') {
					// message_list = ret.result;
					// initApp();

					var html = '';
					for (var i=0;i<ret.result.length;i++) {
						// console.log(JSON.stringify(ret.result[i]));

						var rs = ret.result[i];
						var nType = rs.type;
						var extra = transExtra(rs.latestMessage.extra);
						if (extra.from_member == getPrefs('member_id')) {
							var xm = extra.xm2;
							var tx = extra.tx2;
						} else {
							var xm = extra.xm1;
							var tx = extra.tx1;
						}
						if (rs.conversationType == 'PRIVATE') {
							if (rs.unreadMessageCount > 0 && extra.from_member == getPrefs('member_id')) {
								var shu = '<div class="aui-badge">' + rs.unreadMessageCount + '</div>';
							} else {
								var shu = '';
							}
							if (rs.objectName == 'RC:TxtMsg') {
								xx = rs.latestMessage.text.replace(reg, function(a, b) {
									return face[a] ? face[a] : a;
								});
								if(extra.mtype==undefined){
									var types = '<div class="aui-list-item-text aui-font-size-12">' + xx + '</div>'

								}else{
									var types = '<div class="aui-list-item-text aui-font-size-12 aui-text-success">[文件消息]</div>'
								}
								// var types = '<div class="aui-list-item-text aui-font-size-12">' + xx + '</div>'
							} else if (rs.objectName == 'RC:ImgMsg') {
								var types = '<div class="aui-list-item-text aui-font-size-12 aui-text-success">[图像消息]</div>'
							} else if (rs.objectName == 'RC:VcMsg') {
								var types = '<div class="aui-list-item-text aui-font-size-12 aui-text-primary">[语音消息]</div>'
							}else if (rs.objectName == 'RC:FileMsg') {
								var types = '<div class="aui-list-item-text aui-font-size-12 aui-text-primary">[文件消息]</div>'
							}
							html += '<li class="aui-list-item aui-list-item-middle" onclick="lt(' + "'"+rs.targetId+"'" + ',' + "'" + xm + "'" + ',' + "'" + tx + "'" + ')">';
							html += '     <div class="aui-media-list-item-inner">';
							html += '	       <div class="aui-list-item-media wechat-avatar">';
							html += shu;
							html += '		        <img src="' + tx + '" /></div>';
							html += '			<div class="aui-list-item-inner">';
							html += '                <div class="aui-list-item-text">';
							html += '                     <div class="aui-list-item-title">' + xm + '</div><div class="aui-list-item-right">' + sj(rs.sentTime) + '</div></div>';
							html += types;
							html += '           </div>';
							html += '     </div>';
							html += '</li>';
						} else if (rs.conversationType == 'GROUP') {
							if (rs.unreadMessageCount > 0) {
								var shu = '<div class="aui-badge">' + rs.unreadMessageCount + '</div>';
							} else {
								var shu = '';
							}
							if (rs.objectName == 'RC:TxtMsg') {
								xx = rs.latestMessage.text.replace(reg, function(a, b) {
									return face[a] ? face[a] : a;
								});
								if(extra.mtype==undefined){
									var types = '<div class="aui-list-item-text aui-font-size-12">' + extra.username + '：' + xx + '</div>'

								}else{
									var types = '<div class="aui-list-item-text aui-font-size-12 aui-text-success">'+ extra.class +':[文件消息]</div>'
								}
							} else if (rs.objectName == 'RC:ImgMsg') {
								var types = '<div class="aui-list-item-text aui-font-size-12 aui-text-success">' + extra.username + '：[图像消息]</div>'
							} else if (rs.objectName == 'RC:VcMsg') {
								var types = '<div class="aui-list-item-text aui-font-size-12 aui-text-primary">' + extra.username + '：[语音消息]</div>'
							}
							html += '<li class="aui-list-item aui-list-item-middle" onclick="group(' + extra.group_id + ',' + "'" + extra.group_zh + "'" + ',' + "'" + extra.group_tx + "'" + ')">';
							html += '     <div class="aui-media-list-item-inner">';
							html += '	       <div class="aui-list-item-media wechat-avatar">';
							html += shu;
							html += '		        <img src="' + extra.group_tx + '" /></div>';
							html += '			<div class="aui-list-item-inner">';
							html += '                <div class="aui-list-item-text">';
							html += '                     <div class="aui-list-item-title">' + extra.group_zh + '</div><div class="aui-list-item-right">' + sj(rs.sentTime) + '</div></div>';
							html += types;
							html += '           </div>';
							html += '     </div>';
							html += '</li>';
						}else if(rs.conversationType == 'SYSTEM'){
							xx = rs.latestMessage.text.replace(reg, function(a, b) {
								return face[a] ? face[a] : a;
							});
							if (rs.unreadMessageCount > 0) {
								var shu = '<div class="aui-badge">' + rs.unreadMessageCount + '</div>';
							} else {
								var shu = '';
							}
							var types = '<div class="aui-list-item-text aui-font-size-12">' + xx + '</div>'
							html += '<li class="aui-list-item aui-list-item-middle" onclick="getsys()">';
							html += '     <div class="aui-media-list-item-inner">';
							html += '	       <div class="aui-list-item-media wechat-avatar">';
							html += shu;
							html += '		        <img src="../../image/sys.png" /></div>';
							html += '			<div class="aui-list-item-inner">';
							html += '                <div class="aui-list-item-text">';
							html += '                     <div class="aui-list-item-title">系统消息</div><div class="aui-list-item-right">' + sj(rs.sentTime) + '</div></div>';
							html += types;
							html += '           </div>';
							html += '     </div>';
							html += '</li>';
						}
						$api.html($api.dom('#hh_list'), html);
						api.refreshHeaderLoadDone();
					}
				}
			})
		}

		function getsys(){
			api.openWin({
				reload : true,
				name : 'win_sys_message',
				url : '../win/win_sys_message.html',
				vScrollBarEnabled : false,
			});
		}

		function lt(id, xm, tx) {
			api.openWin({
				reload : true,
				name : 'win_chat',
				url : '../win/win_chat.html',
				pageParam : {
					id : id,
					zh : xm,
					tx : tx
				},
				vScrollBarEnabled : false,
			});
			if ($api.getStorage('member_id') == id) {
			} else {
				var rong = api.require('rongCloud2');
				rong.clearMessagesUnreadStatus({
					conversationType : 'PRIVATE',
					targetId : id
				}, function(ret, err) {
				})
			}
			api.sendEvent({
				name : 'hhxx'
			});
		}

		function group(id, zh, tx) {
			api.openWin({
				reload : true,
				name : 'win_group',
				url : '../win/win_group.html',
				vScrollBarEnabled : false,
				pageParam : {
					group_id : id,
					group_zh : zh,
					group_tx : tx
				}
			});
			var rong = api.require('rongCloud2');
			rong.clearMessagesUnreadStatus({
				conversationType : 'GROUP',
				targetId : id
			}, function(ret, err) {
			})
			api.sendEvent({
				name : 'hhxx'
			});
		}

		function addListeners() {

				api.addEventListener({
						name: 'viewappear'
				}, function () {
						onPageStart();
				});

				api.addEventListener({
						name: 'show_add'
				}, function (ret) {
					  var value = ret.value.show_add;
						vm.show_add = value;
				});

				api.addEventListener({
						name: 'viewdisappear'
				}, function () {
						onPageEnd();
				});

				api.addEventListener({
						name: 'keyback'
				}, function () {
						onPageEnd();
						api.closeWin();
				});
		}

		//json格式转换
		function transExtra(arg) {
			var result = '';
			try {
				result = eval('(' + arg + ')');
			} catch (e) {
				result = arg.slice(1, -1);
			} finally {
			}
			return result;
		}

		//时间差计算
		function sj(sj) {
			var nowt = new Date().getTime();
			var a = new Date(parseInt(sj));
			var b = new Date(parseInt(nowt));
			var date1 = Date.parse(format(a, 4));
			var date2 = Date.parse(format(b, 4));
			var xxsj = Math.ceil((date2 - date1) / (60 * 1000))
			if (xxsj <= 1 && xxsj >= 0) {
				return "就刚才";
			} else if (xxsj <= 10 && xxsj > 1) {
				return xxsj + "分钟前";
			} else if (xxsj <= 60 && xxsj > 10) {
				return format(a, 1);
			} else if (xxsj <= 1440 && xxsj > 60) {
				return format(a, 1);
			} else if (xxsj <= 10080 && xxsj > 1440) {
				return format(a, 2);
			} else if (xxsj > 10080) {
				return format(a, 3);
			} else {
				return format(a, 3);
			}
		}

		//格式化时间
		function format(now, type) {
			var show_day = new Array('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六');
			var year = now.getFullYear().toString();
			var month = (now.getMonth() + 1).toString();
			var day = (now.getDate()).toString();
			var tian = now.getDay().toString();
			var hour = (now.getHours()).toString();
			var minute = (now.getMinutes()).toString();
			var second = (now.getSeconds()).toString();
			if (hour.length == 1) {
				hour = "0" + hour;
			}
			if (minute.length == 1) {
				minute = "0" + minute;
			}
			if (second.length == 1) {
				second = "0" + second;
			}
			if (type == 1) {
				var dateTime = hour + ":" + minute;
			} else if (type == 2) {
				var dateTime = show_day[tian] + " " + hour + ":" + minute
			} else if (type == 3) {
				var dateTime = year + "-" + month + "-" + day
			} else if (type == 4) {
				var dateTime = year + "/" + month + "/" + day + " " + hour + ":" + minute + ":" + second;
			} else if (type == 5) {
				var dateTime = show_day[tian];
			}
			return dateTime;
		}

		//表情符号转换
		var reg = /\[.+?\]/g;
		var face = {
			'[微笑]' : '<span><img src="../res/ChatBox/emotion/Expression_1.png"  width="28"/></span>',
			'[撇嘴]' : '<span><img src="../res/ChatBox/emotion/Expression_2.png"  width="28" /></span>',
			'[色]' : '<span><img src="../res/ChatBox/emotion/Expression_3.png"  width="28" /></span>',
			'[发呆]' : '<span><img src="../res/ChatBox/emotion/Expression_4.png"  width="28" /></span>',
			'[得意]' : '<span><img src="../res/ChatBox/emotion/Expression_5.png"  width="28" /></span>',
			'[流泪]' : '<span><img src="../res/ChatBox/emotion/Expression_6.png"  width="28" /></span>',
			'[害羞]' : '<span><img src="../res/ChatBox/emotion/Expression_7.png"  width="28" /></span>',
			'[闭嘴]' : '<span><img src="../res/ChatBox/emotion/Expression_8.png"  width="28" /></span>',
			'[睡]' : '<span><img src="../res/ChatBox/emotion/Expression_9.png"  width="28" /></span>',
			'[大哭]' : '<span><img src="../res/ChatBox/emotion/Expression_10.png"  width="28"/></span>',
			'[尴尬]' : '<span><img src="../res/ChatBox/emotion/Expression_11.png"  width="28"/></span>',
			'[发怒]' : '<span><img src="../res/ChatBox/emotion/Expression_12.png"  width="28"/></span>',
			'[调皮]' : '<span><img src="../res/ChatBox/emotion/Expression_13.png"  width="28" /></span>',
			'[呲牙]' : '<span><img src="../res/ChatBox/emotion/Expression_14.png"  width="28" /></span>',
			'[惊讶]' : '<span><img src="../res/ChatBox/emotion/Expression_15.png"  width="28" /></span>',
			'[难过]' : '<span><img src="../res/ChatBox/emotion/Expression_16.png"  width="28" /></span>',
			'[酷]' : '<span><img src="../res/ChatBox/emotion/Expression_17.png"  width="28" /></span>',
			'[冷汗]' : '<span><img src="../res/ChatBox/emotion/Expression_18.png"  width="28" /></span>',
			'[抓狂]' : '<span><img src="../res/ChatBox/emotion/Expression_19.png"  width="28" /></span>',
			'[吐]' : '<span><img src="../res/ChatBox/emotion/Expression_20.png"  width="28" /></span>',
			'[偷笑]' : '<span><img src="../res/ChatBox/emotion/Expression_21.png"  width="28" /></span>',
			'[愉快]' : '<span><img src="../res/ChatBox/emotion/Expression_22.png"  width="28" /></span>',
			'[白眼]' : '<span><img src="../res/ChatBox/emotion/Expression_23.png"  width="28" /></span>',
			'[傲慢]' : '<span><img src="../res/ChatBox/emotion/Expression_24.png"  width="28" /></span>',
			'[饥饿]' : '<span><img src="../res/ChatBox/emotion/Expression_25.png"  width="28" /></span>',
			'[困]' : '<span><img src="../res/ChatBox/emotion/Expression_26.png"  width="28" /></span>',
			'[恐惧]' : '<span><img src="../res/ChatBox/emotion/Expression_27.png"  width="28" /></span>',
			'[流汗]' : '<span><img src="../res/ChatBox/emotion/Expression_28.png"  width="28" /></span>',
			'[憨笑]' : '<span><img src="../res/ChatBox/emotion/Expression_29.png"  width="28" /></span>',
			/*从这*/
			'[悠闲]' : '<span><img src="../res/ChatBox/emotion/Expression_30.png"  width="28" /></span>',
			'[奋斗]' : '<span><img src="../res/ChatBox/emotion/Expression_31.png"  width="28" /></span>',
			'[咒骂]' : '<span><img src="../res/ChatBox/emotion/Expression_32.png"  width="28" /></span>',
			'[疑问]' : '<span><img src="../res/ChatBox/emotion/Expression_33.png"  width="28" /></span>',
			'[嘘]' : '<span><img src="../res/ChatBox/emotion/Expression_34.png"  width="28" /></span>',
			'[晕]' : '<span><img src="../res/ChatBox/emotion/Expression_35.png"  width="28" /></span>',
			'[疯了]' : '<span><img src="../res/ChatBox/emotion/Expression_36.png"  width="28" /></span>',
			'[衰]' : '<span><img src="../res/ChatBox/emotion/Expression_37.png"  width="28" /></span>',
			'[骷髅]' : '<span><img src="../res/ChatBox/emotion/Expression_38.png"  width="28" /></span>',
			'[敲打]' : '<span><img src="../res/ChatBox/emotion/Expression_39.png"  width="28"/></span>',
			'[再见]' : '<span><img src="../res/ChatBox/emotion/Expression_40.png"  width="28"/></span>',
			'[擦汗]' : '<span><img src="../res/ChatBox/emotion/Expression_41.png"  width="28"/></span>',
			'[抠鼻]' : '<span><img src="../res/ChatBox/emotion/Expression_42.png"  width="28" /></span>',
			'[鼓掌]' : '<span><img src="../res/ChatBox/emotion/Expression_43.png"  width="28" /></span>',
			'[糗大了]' : '<span><img src="../res/ChatBox/emotion/Expression_44.png"  width="28" /></span>',
			'[坏笑]' : '<span><img src="../res/ChatBox/emotion/Expression_45.png"  width="28" /></span>',
			'[左哼哼]' : '<span><img src="../res/ChatBox/emotion/Expression_46.png"  width="28" /></span>',
			'[右哼哼]' : '<span><img src="../res/ChatBox/emotion/Expression_47.png"  width="28" /></span>',
			'[哈欠]' : '<span><img src="../res/ChatBox/emotion/Expression_48.png"  width="28" /></span>',
			'[鄙视]' : '<span><img src="../res/ChatBox/emotion/Expression_49.png"  width="28" /></span>',
			'[委屈]' : '<span><img src="../res/ChatBox/emotion/Expression_50.png"  width="28" /></span>',
			'[快哭了]' : '<span><img src="../res/ChatBox/emotion/Expression_51.png"  width="28" /></span>',
			'[阴险]' : '<span><img src="../res/ChatBox/emotion/Expression_52.png"  width="28" /></span>',
			'[亲亲]' : '<span><img src="../res/ChatBox/emotion/Expression_53.png"  width="28" /></span>',
			'[吓]' : '<span><img src="../res/ChatBox/emotion/Expression_54.png"  width="28" /></span>',
			'[可怜]' : '<span><img src="../res/ChatBox/emotion/Expression_55.png"  width="28" /></span>',
			'[菜刀]' : '<span><img src="../res/ChatBox/emotion/Expression_56.png"  width="28" /></span>',
			'[西瓜]' : '<span><img src="../res/ChatBox/emotion/Expression_57.png"  width="28" /></span>',
			'[啤酒]' : '<span><img src="../res/ChatBox/emotion/Expression_58.png"  width="28" /></span>',
			'[篮球]' : '<span><img src="../res/ChatBox/emotion/Expression_59.png"  width="28" /></span>',
			'[乒乓]' : '<span><img src="../res/ChatBox/emotion/Expression_60.png"  width="28" /></span>',
			'[咖啡]' : '<span><img src="../res/ChatBox/emotion/Expression_61.png"  width="28" /></span>',
			'[饭]' : '<span><img src="../res/ChatBox/emotion/Expression_62.png"  width="28" /></span>',
			'[猪头]' : '<span><img src="../res/ChatBox/emotion/Expression_63.png"  width="28" /></span>',
			'[玫瑰]' : '<span><img src="../res/ChatBox/emotion/Expression_64.png"  width="28" /></span>',
			'[凋谢]' : '<span><img src="../res/ChatBox/emotion/Expression_65.png"  width="28" /></span>',
			'[嘴唇]' : '<span><img src="../res/ChatBox/emotion/Expression_66.png"  width="28" /></span>',
			'[爱心]' : '<span><img src="../res/ChatBox/emotion/Expression_67.png"  width="28" /></span>',
			'[心碎]' : '<span><img src="../res/ChatBox/emotion/Expression_68.png"  width="28"/></span>',
			'[蛋糕]' : '<span><img src="../res/ChatBox/emotion/Expression_69.png"  width="28"/></span>',
			'[闪电]' : '<span><img src="../res/ChatBox/emotion/Expression_70.png"  width="28"/></span>',
			'[炸弹]' : '<span><img src="../res/ChatBox/emotion/Expression_71.png"  width="28" /></span>',
			'[刀]' : '<span><img src="../res/ChatBox/emotion/Expression_72.png"  width="28" /></span>',
			'[足球]' : '<span><img src="../res/ChatBox/emotion/Expression_73.png"  width="28" /></span>',
			'[瓢虫]' : '<span><img src="../res/ChatBox/emotion/Expression_74.png"  width="28" /></span>',
			'[便便]' : '<span><img src="../res/ChatBox/emotion/Expression_75.png"  width="28" /></span>',
			'[月亮]' : '<span><img src="../res/ChatBox/emotion/Expression_76.png"  width="28" /></span>',
			'[太阳]' : '<span><img src="../res/ChatBox/emotion/Expression_77.png"  width="28" /></span>',
			'[礼物]' : '<span><img src="../res/ChatBox/emotion/Expression_78.png"  width="28" /></span>',
			'[拥抱]' : '<span><img src="../res/ChatBox/emotion/Expression_79.png"  width="28" /></span>',
			'[强]' : '<span><img src="../res/ChatBox/emotion/Expression_80.png"  width="28" /></span>',
			'[弱]' : '<span><img src="../res/ChatBox/emotion/Expression_81.png"  width="28" /></span>',
			'[握手]' : '<span><img src="../res/ChatBox/emotion/Expression_82.png"  width="28" /></span>',
			'[胜利]' : '<span><img src="../res/ChatBox/emotion/Expression_83.png"  width="28" /></span>',
			'[抱拳]' : '<span><img src="../res/ChatBox/emotion/Expression_84.png"  width="28" /></span>',
			'[勾引]' : '<span><img src="../res/ChatBox/emotion/Expression_85.png"  width="28" /></span>',
			'[拳头]' : '<span><img src="../res/ChatBox/emotion/Expression_86.png"  width="28" /></span>',
			'[差劲]' : '<span><img src="../res/ChatBox/emotion/Expression_87.png"  width="28" /></span>',
			'[爱你]' : '<span><img src="../res/ChatBox/emotion/Expression_88.png"  width="28" /></span>',
			'[NO]' : '<span><img src="../res/ChatBox/emotion/Expression_89.png"  width="28" /></span>',
			'[OK]' : '<span><img src="../res/ChatBox/emotion/Expression_90.png"  width="28" /></span>',
			'[爱情]' : '<span><img src="../res/ChatBox/emotion/Expression_91.png"  width="28" /></span>',
			'[飞吻]' : '<span><img src="../res/ChatBox/emotion/Expression_92.png"  width="28" /></span>',
			'[跳跳]' : '<span><img src="../res/ChatBox/emotion/Expression_93.png"  width="28" /></span>',
			'[发抖]' : '<span><img src="../res/ChatBox/emotion/Expression_94.png"  width="28" /></span>',
			'[怄火]' : '<span><img src="../res/ChatBox/emotion/Expression_95.png"  width="28" /></span>',
			'[转圈]' : '<span><img src="../res/ChatBox/emotion/Expression_96.png"  width="28" /></span>',
			'[磕头]' : '<span><img src="../res/ChatBox/emotion/Expression_97.png"  width="28"/></span>',
			'[回头]' : '<span><img src="../res/ChatBox/emotion/Expression_98.png"  width="28"/></span>',
			'[跳绳]' : '<span><img src="../res/ChatBox/emotion/Expression_99.png"  width="28"/></span>',
			'[投降]' : '<span><img src="../res/ChatBox/emotion/Expression_100.png"  width="28" /></span>',
			'[激动]' : '<span><img src="../res/ChatBox/emotion/Expression_101.png"  width="28" /></span>',
			'[街舞]' : '<span><img src="../res/ChatBox/emotion/Expression_102.png"  width="28" /></span>',
			'[献吻]' : '<span><img src="../res/ChatBox/emotion/Expression_103.png"  width="28" /></span>',
			'[左太极]' : '<span><img src="../res/ChatBox/emotion/Expression_104.png"  width="28" /></span>',
			'[右太极]' : '<span><img src="../res/ChatBox/emotion/Expression_105.png"  width="28" /></span>'
		};
	</script>
</html>
